#pragma once
#include <string>
#include <windows.h>

class FileSplitter {
public:
	FileSplitter(HWND hMain, HWND hProgress, bool randomFloat);
	bool splitBySize(const std::wstring& wpath, std::uintmax_t mbSize);
	bool splitByParts(const std::wstring& wpath, unsigned int parts);

private:
	std::uintmax_t getChunkSizeUnaligned(std::uintmax_t rest, std::uintmax_t prefer) const;
	HWND m_hMain;
	HWND m_hProgress;
	bool m_randomFloat;
};


